package com.course.domain.enums;

/**
 * Created by Justin on 2017/5/18.
 */
public enum Role {
    NONE(0, "NONE", "无效"),
    ADMIN(1, "ADMIN", "管理员"),
    STUDENT(2, "STUDENT", "学生"),
    TEACHER(3, "TEACHER", "老师");

    private int value;
    private String name;
    private String title;

    Role(int value, String name, String title) {
        this.value = value;
        this.name = name;
        this.title = title;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public String getTitle() {
        return title;
    }
}
